home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / interfaces / font menu library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-30  |  1.9 KB  |  62 lines  |  [TEXT/MPS ]

  1. /* graphics libraries:    
  2.     font menu library interfaces
  3.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Mike Reed, Oliver Steele, David Van Brink, Chris Yerga
  4.     Copyright 1987 - 1993 Apple Computer, Inc.  All rights reserved.
  5. */
  6.  
  7. #pragma once
  8.     #ifndef fontMenuLibraryIncludes
  9.     #define fontMenuLibraryIncludes
  10.     
  11.     #ifndef __Menus__
  12.         #include <Menus.h>
  13.     #endif
  14.     
  15.     #ifndef fontTypesIncludes
  16.         #include "font types.h"
  17.     #endif
  18.     
  19.     #ifndef graphicsTypesIncludes
  20.         #include "graphics types.h"
  21.     #endif
  22.     
  23.     #ifndef layoutRoutinesIncludes
  24.         #include "layout routines.h"
  25.     #endif
  26.     
  27.     #ifndef fontRoutinesIncludes
  28.         #include "font routines.h"
  29.     #endif
  30.     
  31.     #ifdef __cplusplus
  32.     extern "C" {
  33.     #endif
  34.     
  35.     enum fontMenuAttributes {
  36.         noInstancesFontMenu = 1
  37.     };
  38.     typedef long fontMenuAttribute;
  39.     
  40.     typedef boolean (*fontFilterProc)(gxFont fontID);
  41.     
  42.     void SortMenu(MenuHandle menu);
  43.     long FontMenu(MenuHandle menu);
  44.     long FontPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  45.     long FontFamilyMenu(MenuHandle menu);
  46.     long FontFamilyPlatformMenu(MenuHandle menu, gxFontPlatform platform, gxFontScript script, gxFontLanguage language);
  47.     MenuHandle FontStyleMenu(short menuID, gxFont family);
  48.     short HierFontMenu(MenuHandle theMenu, short firstHierMenuID, fontFilterProc proc, fontMenuAttribute attr);
  49.     gxFont DoHierFontMenuCommand(long menuResult, short hierFontMenuID, long *instanceIndex);
  50.     short DoHierFontMenuCommandStyle(long menuResult, short hierFontMenuID, gxStyle aStyle, long matchInfo);
  51.     short DoHierFontMenuCommandShape(long menuResult, short hierFontMenuID, gxShape aShape);
  52.     long FontToQD(gxFont fontID, long* styleBits);
  53.  
  54.     long GetMenuRunFeatures(MenuHandle menu, gxFont fontID, gxRunFeature feature[]);
  55.     void SetMenuRunFeatures(MenuHandle menu, gxFont fontID, long count, const gxRunFeature feature[]);
  56.     void FontFeatureMenu(MenuHandle menu, gxFont fontID);
  57.     
  58.     #ifdef __cplusplus
  59.     }
  60.     #endif
  61. #endif
  62.